package com.globant.util.log.reports;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;

/**
 * Log Reports RowMapper implementation.
 * 
 * @author gonzalo.zarza
 * @version 20130128v1.0
 */

public class LogReportsRowMapper implements RowMapper {

	@Override
	public LogReports mapRow(ResultSet rs, int rowNum) throws SQLException {
		LogReports report = new LogReports();

		report.setLogId(rs.getString("log_id"));
		report.setReportId(rs.getInt("report_id"));
		report.setStatus(rs.getInt("status"));
	
		return report;
	}
	
}
